package com.abb.base_common.mvp.ui;


import android.os.Bundle;

import androidx.annotation.Nullable;

import com.abb.base_common.mvp.contract.BaseContract;

public abstract class MvpActivity<Presenter extends BaseContract.Presenter> extends ABBActivity implements BaseContract.View<Presenter> {
    protected Presenter mPresenter;

    protected abstract Presenter initPresenter();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        mPresenter = initPresenter();
        super.onCreate(savedInstanceState);
    }
}
